"use strict"

import Ajax from "../libs/ajax";
import Constant from "../libs/constants";

const GuardTimeSetting={
    getTimeConfig(){
        return Ajax.ajax({
            url: Constant.URL_GET_GUARDTIME,
            method: "get"
        }).then(res=>res.data)
    },
    setTimeConfig(data){
        return Ajax.ajax({
            url: Constant.URL_SET_GUARDTIME,
            data:data,
            method: "post"
        }).then(res=>res.data)
    }
}

export default GuardTimeSetting